package claybird.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import claybird.dao.ShootDayDao;
import claybird.dom.ShootDay;

@Controller
public class HomeController {
	@Autowired ShootDayDao shootDayDAO;
	@RequestMapping(value={"/home","/"})
	public ModelAndView getHomePage(){
		List<ShootDay> sd =shootDayDAO.getAllTir();
		return new ModelAndView("home","shootList",sd);
	}

}
